package com.zyplayer.dubbo.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.zyplayer.dubbo.service.UserService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/dubbo")
public class DubboController {

	@Reference
	private UserService userService;
	
	@RequestMapping("/getUserList")
	public List<String> getUserList() {
		return userService.getUserList();
	}
	
}
